﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="carduser_list.aspx.cs"
    Inherits="EZCRS.HCMS.Web.manage.carduser.carduser_list" %>

<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Assembly="Book38.Net.CustomControl" Namespace="Book38.Net.CustomControl"
    TagPrefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>

</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
    <uc2:titlepage ID="Titlepage1" runat="server" inittitle="<%$ Resources:Site, LabCardUserList %>">
    </uc2:titlepage>
    <table class="main-table" cellpadding="1" cellspacing="1">
        <tr class="line-even">
            <td width="38%" style="text-align: right;">
                <asp:DropDownList ID="DdlSort" runat="server">
                    <asp:ListItem Value="1" Text="<%$ Resources:Site, LabCardUserUnumber %>"></asp:ListItem>
                    <asp:ListItem Value="2" Text="<%$ Resources:Site, LabCardUserUsrName %>"></asp:ListItem>
                    <asp:ListItem Value="3" Text="<%$ Resources:Site, LabCardUserUsrEmail %>"></asp:ListItem>
                    <asp:ListItem Value="4" Text="<%$ Resources:Site, LabCardUserUsrMobile %>"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td width="21%" style="text-align: left;">
                &nbsp;
                <cc2:WebTextBox ID="txt_search" runat="server" CssClass="text-line" Width="150px"></cc2:WebTextBox>
            </td>
            <td width="41%">
                <asp:Button ID="BtnSearch" runat="server" CssClass="bttn" Text="<%$ Resources:Site, ButtonSearch %>" />&nbsp;
            </td>
        </tr>
    </table>
    <input type="hidden" id="txt_sql" value="" />
    <br />
    <div class="mid">
    <uc1:jspage ID="Jspage1" runat="server"></uc1:jspage>
    </div>
    </form>

    <script type="text/javascript">
    function Page_Load(pageindex)
    {
        var sqlStr=$F("DdlSort").value+"|"+$F("txt_search").value;
        pageindex=pageIndexSetting(pageindex);    //pageindex的设定
        EZCRS.HCMS.Web.manage.carduser.carduser_list.Getrecord(pageindex,sqlStr,gid,setTable);
        pageLastSetting(sqlStr,pageindex);     //最后的赋值
    }
    AjaxPro.timeoutPeriod = 40000;
    var l = $F("loadinfo");
    AjaxPro.onLoading = function(b)
    {
        l.innerHTML="<img src=\"../../Image/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
    }    
    AjaxPro.onError = function(e) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    } 
    AjaxPro.onTimeout = function(t) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    }
    </script>

</body>
</html>
